.class Lcom/xingbook/park/ui/bo;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field final synthetic a:Lcom/xingbook/park/ui/bm;


# direct methods
.method constructor <init>(Lcom/xingbook/park/ui/bm;)V
    .locals 0

    iput-object p1, p0, Lcom/xingbook/park/ui/bo;->a:Lcom/xingbook/park/ui/bm;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/park/ui/bo;->a:Lcom/xingbook/park/ui/bm;

    invoke-static {v0}, Lcom/xingbook/park/ui/bm;->b(Lcom/xingbook/park/ui/bm;)Lcom/xingbook/xingbook/b/d;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/ui/bo;->a:Lcom/xingbook/park/ui/bm;

    invoke-static {v0}, Lcom/xingbook/park/ui/bm;->b(Lcom/xingbook/park/ui/bm;)Lcom/xingbook/xingbook/b/d;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/xingbook/b/d;->ag()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    :cond_0
    :goto_0
    return-void

    :pswitch_0
    iget-object v0, p0, Lcom/xingbook/park/ui/bo;->a:Lcom/xingbook/park/ui/bm;

    invoke-virtual {v0}, Lcom/xingbook/park/ui/bm;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/xingbook/c/n;->a(Landroid/content/Context;)Lcom/xingbook/c/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/c/n;->j()Lcom/xingbook/service/download/b;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/park/ui/bo;->a:Lcom/xingbook/park/ui/bm;

    invoke-static {v1}, Lcom/xingbook/park/ui/bm;->b(Lcom/xingbook/park/ui/bm;)Lcom/xingbook/xingbook/b/d;

    move-result-object v1

    invoke-virtual {v1}, Lcom/xingbook/xingbook/b/d;->t()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/xingbook/service/download/b;->b(Ljava/lang/String;)V

    goto :goto_0

    :pswitch_1
    iget-object v0, p0, Lcom/xingbook/park/ui/bo;->a:Lcom/xingbook/park/ui/bm;

    iget-object v0, v0, Lcom/xingbook/park/ui/bm;->b:Lcom/xingbook/park/ui/be;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/ui/bo;->a:Lcom/xingbook/park/ui/bm;

    iget-object v0, v0, Lcom/xingbook/park/ui/bm;->b:Lcom/xingbook/park/ui/be;

    iget-object v1, p0, Lcom/xingbook/park/ui/bo;->a:Lcom/xingbook/park/ui/bm;

    invoke-static {v1}, Lcom/xingbook/park/ui/bm;->b(Lcom/xingbook/park/ui/bm;)Lcom/xingbook/xingbook/b/d;

    move-result-object v1

    invoke-interface {v0, v1}, Lcom/xingbook/park/ui/be;->c(Lcom/xingbook/xingbook/b/d;)V

    goto :goto_0

    :pswitch_2
    iget-object v0, p0, Lcom/xingbook/park/ui/bo;->a:Lcom/xingbook/park/ui/bm;

    invoke-static {v0}, Lcom/xingbook/park/ui/bm;->a(Lcom/xingbook/park/ui/bm;)Landroid/widget/TextView;

    move-result-object v0

    const-string v1, "\u6682\u505c\u4e2d\u2026"

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x10

    if-lt v0, v1, :cond_1

    iget-object v0, p0, Lcom/xingbook/park/ui/bo;->a:Lcom/xingbook/park/ui/bm;

    invoke-static {v0}, Lcom/xingbook/park/ui/bm;->a(Lcom/xingbook/park/ui/bm;)Landroid/widget/TextView;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/park/ui/bo;->a:Lcom/xingbook/park/ui/bm;

    iget v1, v1, Lcom/xingbook/park/ui/bm;->a:F

    invoke-static {v1}, Lcom/xingbook/park/ui/aa;->d(F)Landroid/graphics/drawable/GradientDrawable;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setBackground(Landroid/graphics/drawable/Drawable;)V

    :goto_1
    iget-object v0, p0, Lcom/xingbook/park/ui/bo;->a:Lcom/xingbook/park/ui/bm;

    invoke-virtual {v0}, Lcom/xingbook/park/ui/bm;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/xingbook/c/n;->a(Landroid/content/Context;)Lcom/xingbook/c/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/c/n;->j()Lcom/xingbook/service/download/b;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/park/ui/bo;->a:Lcom/xingbook/park/ui/bm;

    invoke-static {v1}, Lcom/xingbook/park/ui/bm;->b(Lcom/xingbook/park/ui/bm;)Lcom/xingbook/xingbook/b/d;

    move-result-object v1

    invoke-virtual {v1}, Lcom/xingbook/xingbook/b/d;->t()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/xingbook/service/download/b;->c(Ljava/lang/String;)V

    goto :goto_0

    :cond_1
    iget-object v0, p0, Lcom/xingbook/park/ui/bo;->a:Lcom/xingbook/park/ui/bm;

    invoke-static {v0}, Lcom/xingbook/park/ui/bm;->a(Lcom/xingbook/park/ui/bm;)Landroid/widget/TextView;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/park/ui/bo;->a:Lcom/xingbook/park/ui/bm;

    iget v1, v1, Lcom/xingbook/park/ui/bm;->a:F

    invoke-static {v1}, Lcom/xingbook/park/ui/aa;->d(F)Landroid/graphics/drawable/GradientDrawable;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    goto :goto_1

    :pswitch_3
    iget-object v0, p0, Lcom/xingbook/park/ui/bo;->a:Lcom/xingbook/park/ui/bm;

    iget-object v0, v0, Lcom/xingbook/park/ui/bm;->b:Lcom/xingbook/park/ui/be;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/ui/bo;->a:Lcom/xingbook/park/ui/bm;

    iget-object v0, v0, Lcom/xingbook/park/ui/bm;->b:Lcom/xingbook/park/ui/be;

    iget-object v1, p0, Lcom/xingbook/park/ui/bo;->a:Lcom/xingbook/park/ui/bm;

    invoke-static {v1}, Lcom/xingbook/park/ui/bm;->b(Lcom/xingbook/park/ui/bm;)Lcom/xingbook/xingbook/b/d;

    move-result-object v1

    invoke-interface {v0, v1}, Lcom/xingbook/park/ui/be;->b(Lcom/xingbook/xingbook/b/d;)V

    goto/16 :goto_0

    nop

    :pswitch_data_0
    .packed-switch -0x1
        :pswitch_1
        :pswitch_0
        :pswitch_2
        :pswitch_0
        :pswitch_0
        :pswitch_3
    .end packed-switch
.end method
